
NTHREADS="4"

[ -e "/etc/portage/make.conf.lto" ] && source make.conf.lto

COMMON_FLAGS="-march=native ${CFLAGS:--O2} -pipe -falign-functions=32"

CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"

MAKEOPTS="-j${NTHREADS}"

CPU_FLAGS_X86="aes avx f16c mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1
			   sse4_2 ssse3"

CHOST="x86_64-pc-linux-gnu"

CMAKE_MAKEFILE_GENERATOR=ninja

USE="-gnome -gnome-keyring -kde -qt4 -qt5 -gtk -emacs -xemacs -consolekit
	 -systemd -ppp -modemmanager -cdda -3dfx -a52 -aqua -bluetooth -cdr
	 -coreaudio -css -dv -dvb -dvd -gphoto2 -clamav -ieee1394 -ios -ipod
	 -jack -joystick -lirc -nocd -telemetry -wayland -jack -openssl -geoip
	 -geolocation -networkmanager -pulseaudio -cups -postscript -bindist
	 X alsa jpeg png luajit flac git libnotify vaapi dbus
	 zsh-completion wifi elogind libressl lto pgo graphite custom-cflags"

LUA_TARGETS="luajit"
LUA_SINGLE_TARGET="luajit"

VIDEO_CARDS="intel i965"

ACCEPT_LICENSE="-* @FREE"

# NOTE: This stage was built with the bindist Use flag enabled
PORTDIR="/var/db/repos/gentoo"
DISTDIR="/var/cache/distfiles"
PKGDIR="/var/cache/binpkgs"


EMERGE_DEFAULT_OPTS="--ask --jobs 4 --load-average 4"

FEATURES="clean-logs split-log unknown-features-warn"

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C

GRUB_PLATFORMS="efi-64"

CURL_SSL="libressl"

GENTOO_MIRRORS="https://gentoo.c3sl.ufpr.br/ http://gentoo.c3sl.ufpr.br/
				http://mirror.leaseweb.com/gentoo/"
